<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
    <!ENTITY copy "&#169;">
    <!ENTITY nbsp "&#160;">
    <!ENTITY laquo "&#171;">
    <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <xsl:include href="../layout.xsl"/>  
  <xsl:include href="../msg.xsl"/>

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="content">
    <script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript" src="/js/tiny_mce/tiny_config.js"></script>
    
    <script type="text/javascript" src="/js/tiny_mce/plugins/imagemanager/js/mcimagemanager.js"></script>
    <script type="text/javascript" src="/js/tiny_mce/i_config.js"></script>

    <xsl:apply-templates select="Main/form" />    
    
    <div class="content">
      <H2>
        <xsl:value-of select="Main/Title" />
      </H2>
      <div class="path">
        <a href="/{Main/Controller}/edit/id/{Main/Card/id}">
          <xsl:value-of select="Main/Card/name_ru"/>
        </a> /
        
        <a href="/{$Controller}/{Main/Controller}/id/{Main/Card/id}">
          Фотографии
        </a> 
        
      </div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%" valign="top">
            <xsl:call-template name="sidebar">
              <xsl:with-param name="node" select="/page/content/Menu/menu2"></xsl:with-param>
            </xsl:call-template>

            <div>
              <xsl:choose>
                <xsl:when test="/page/content/Menu/menu2">
                  <xsl:attribute name="class">content2</xsl:attribute>
                </xsl:when>
                <xsl:otherwise>
                  <xsl:attribute name="class">content</xsl:attribute>
                </xsl:otherwise>
              </xsl:choose>
              <div id="poststuff">                
                <form action="" method="post" name="form" id="form" enctype="multipart/form-data">                  
                  <fieldset id="AddFiles">
                    <legend>Фото 1</legend>
                    <div>
                      <input name="file_name" type="file" id="picpath" size="30" onchange="getImagePath(this);"/>
                    </div>
                  </fieldset>                  

                  <p class="submit">                                        
                    <input name="save" type="submit" id="save" style="font-weight: bold;" value="Сохранить" />
                  </p>
                </form>
              </div>
            </div>
          </td>          
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </div>
  </xsl:template>  
  
</xsl:stylesheet>